package com.yyg.boot;

import com.yyg.boot.service.impl.HelloService;
import com.yyg.boot.web.HelloResource;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @Description Description
 * @Author 一一哥Sun
 * @Date Created in 2020/3/28
 */
@SpringBootApplication
public class JerseyApplication {

    /**
     * 第二种方式，使用@Bean创建一个ResourceConfig类实例
     */
//    @Bean
//    public ResourceConfig resourceConfig() {
//        ResourceConfig config = new ResourceConfig();
//        config.register(HelloResource.class);
//        return config;
//    }

    public static void main(String[] args){
        SpringApplication.run(JerseyApplication.class,args);
    }

}
